import httpInstace from "@/utils/http";

//detail数据的渲染
export const getDetail = (id) => {
  return httpInstace({
    url: "/goods",
    params: {
      id,
    },
  });
};
//热榜数据的获取
export const fetchHotGoodsAPI = ({ id, type, limit }) => {
  return httpInstace({
    url: "/goods/hot",
    params: {
      id,
      type,
      limit,
    },
  });
};
